<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Letter1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-letter1" data-rule="required" class="form-control" name="row[letter1]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Letter2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-letter2" data-rule="required" class="form-control" name="row[letter2]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Keyword')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-keyword" data-rule="required" class="form-control" name="row[keyword]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Region')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-region" data-rule="required" class="form-control selectpicker" name="row[region]">
                {foreach name="regionList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Landarea_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[landarea_json]">
                <dd>
                    <ins>平方米</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[landarea_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Floorarea_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[floorarea_json]">
                <dd>
                    <ins>平方米</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[floorarea_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Propertyage_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[propertyage_json]">
                <dd>
                    <ins>年限</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[propertyage_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Plotratio_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[plotratio_json]">
                <dd>
                    <ins>0.0</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[plotratio_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Greeningrate_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[greeningrate_json]">
                <dd>
                    <ins>%</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[greeningrate_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Density_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[density_json]">
                <dd>
                    <ins>0.0</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[density_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vehicleparking_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[vehicleparking_json]">
                <dd>
                    <ins>个</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[vehicleparking_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bicycleparking_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[bicycleparking_json]">
                <dd>
                    <ins>个</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[bicycleparking_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Opening_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-opening_time" class="form-control datetimepicker" data-date-format="YYYY/MM" data-use-current="true" name="row[opening_time]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Completion_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-completion_time" class="form-control datetimepicker" data-date-format="YYYY/MM" data-use-current="true" name="row[completion_time]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Developer_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-developer_id" data-source="newhouse/developers/index" data-field="title" class="form-control selectpage" name="row[developer_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Architectural_design')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-architectural_design" class="form-control" name="row[architectural_design]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Landscape_design')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-landscape_design" class="form-control" name="row[landscape_design]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lat')}{:__('Lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addresstext" data-rule="required" class="form-control" type="text" style="background-color:#fff" readonly data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker">
            <input id="c-lat" class="form-control" name="row[lat]" type="hidden">
            <input id="c-lng" class="form-control" name="row[lng]" type="hidden">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tel400')}:</label>
        <div class="col-xs-12 col-sm-8">
            400 0759 988 转 <input id="c-tel400" style="width: 100px;" maxlength="4" class="form-control" name="row[tel400]" type="text">
            <span style="margin: 5px 0;display: block;color: red;">请输入自定义的400分机号</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tel_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[tel_json]">
                <dd>
                    <ins>电话</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[tel_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tradearea_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tradearea_ids" data-source="newhouse/tradearea/index" data-field="title" data-multiple="true" class="form-control selectpage" name="row[tradearea_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Covertype')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="covertypeList" item="vo"}
                <label for="row[covertype]-{$key}"><input id="row[covertype]-{$key}" name="row[covertype]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div id="house">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Houselabel_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-houselabel_ids" data-source="newhouse/label/index" data-params='{"custom[type]":"1"}' data-multiple="true" class="form-control selectpage" name="row[houselabel_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-house_image" class="form-control" size="50" name="row[house_image]" type="hidden">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-house_image" class="btn btn-danger plupload" data-input-id="c-house_image" data-multipart={"module":"h/myimg","nocrop":"1"} data-field="house_image" data-maxcount="1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-house_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-house_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-house_image"></ul>
        </div>
    </div>
    </div>
    <div id="business" style="display: none;">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Businesslabel_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-businesslabel_ids" data-source="newhouse/label/index" data-params='{"custom[type]":"3"}' data-multiple="true" class="form-control selectpage" name="row[businesslabel_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Business_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-business_image" class="form-control" size="50" name="row[business_image]" type="hidden">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-business_image" class="btn btn-danger plupload" data-input-id="c-business_image" data-multipart={"module":"h/myimg","nocrop":"1"} data-field="business_image" data-maxcount="1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-business_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-business_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-business_image"></ul>
        </div>
    </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="hidden">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-multipart={"module":"h/myimg","nocrop":"1"} data-field="image" data-maxcount="1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recommend')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="recommendList" item="vo"}
                <label for="row[recommend]-{$key}"><input id="row[recommend]-{$key}" name="row[recommend]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flag')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="flagList" item="vo"}
                <label for="row[flag]-{$key}"><input id="row[flag]-{$key}" name="row[flag]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Partner')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="partnerList" item="vo"}
                <label for="row[partner]-{$key}"><input id="row[partner]-{$key}" name="row[partner]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Partnerlabel_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-partnerlabel_id" data-source="newhouse/label/index" data-params='{"custom[type]":"4"}' class="form-control selectpage" name="row[partnerlabel_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dynatown')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-dynatown" data-rule="required" class="form-control selectpicker" name="row[dynatown]">
                {foreach name="dynatownList" item="vo"}
                <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" class="form-control" name="row[admin_id]" type="hidden" value="{:$auth->id}">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
